package com.atguigu.lease.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/*
*功能：
 作者：chenhao
*日期： 2025/3/15 上午11:17
*/
@Schema(description = "用户信用表")
@TableName(value = "user_credit")
@Data
public class UserCredit extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户id")
    @TableField(value = "userId")
    private Long userId;
    @Schema(description = "用户信用分")
    @TableField(value = "credit_score")
    private Integer creditScore; // 用户信用分
    @Schema(description = "爽约次数")
    @TableField(value = "breach_count")
    private Integer breachCount; // 爽约次数
    @Schema(description = "是否被封禁")
    @TableField(value = "is_banned")
    private Boolean isBanned; // 是否被封禁
}
